/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//http://localhost/gestur/index.php/vinculacion/reptrabajocampo/listaAreas?cedula=1003718138

function areas(cedula) {

    url = 'index.php/vinculacion/reptrabajocampo/listaAreas';

    $.ajax({
        type: "GET", //GET or POST or PUT or DELETE verb
//        url: 'listaAreas', // Location of the service antes
        url: baseUrl + url,
        data: {cedula: cedula}, //Data sent to server
        //contentType: "",		// content type sent to server
        dataType: "json", //Expected data format from server
        //dataType: "text", 	//Expected data format from server

        //processdata: true, 	//True or False
        success: function(listhoras) {//On Successful service call
//            console.log(listhoras);
//            alert(listarea);

            $("#RepTrabajoCampo_id_area").html(listhoras);
        }
//        error: function(listhoras) {//On Successful service call
//            console.log(listhoras);
//            $("#RepHoras").html();
//        }

//                    error: ServiceFailed	// When Service call fails
    });
}





